<?php
require_once 'includes/funciones.php';
conexion();

$var=sqlint($_GET['var']);
$row=existe('id', 'departamento', $var);
$reg_id=$row['reg-id'];

$result=mysql_query("select  r.id as id, r.nombre as nombre  from samptyt.region as r where id>0  ");

while($rowconcla=mysql_fetch_array($result))
                    {
                       if($rowconcla['id']==$reg_id)
                        {
                                echo '<option value="'.$rowconcla['id'].'"selected >'.$rowconcla['nombre'].' </option>';
                        }else{
                                echo '<option value="'.$rowconcla['id'].'" >'.$rowconcla['nombre'].' </option>';
                        }
						 
                    }
?>